﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.ComponentModel.DataAnnotations;
using RPSImporter.Infrastructure;

namespace RPSImporter.Models.Settings
{
   public class GeneralSettings : IFileSettings
   {
      [Key]
      [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
      public Int64 SettingsId { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Siège Social")]
      public string CompanyFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Etablissement")]
      public String EnterpriseFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Entreprises Extérieures")]
      public String ExternalEnterprisesFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Organisation Fonctionnelle")]
      public String HierarchyFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Personne")]
      public String PersonsFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Heures Travaillées par Personne")]
      public String HoursPersonFileName { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Fichier Heures Travaillées par Niveau Hiérarchique")]
      public String HoursHierarchyFileName { get; set; }

      [StringLength(1)]
      [Display(Name = "Délimiteur CSV")]
      public String CsvDelimiter { get; set; }

      [StringLength(350)]
      [Display(Name = "Adresse ou IP du serveur FTP")]
      public String FtpAddress { get; set; }

      [StringLength(100)]
      [Display(Name = "Nom Utilisateur FTP")]
      public String FtpUsername { get; set; }

      [StringLength(100)]
      [Display(Name = "Mot de Passe FTP")]
      public String FtpPassword { get; set; }

      [StringLength(100)]
      [Display(Name = "Répertoire par défaut FTP")]
      public String FtpPath { get; set; }

      [Display(Name = "Use multicolumn import for Persons")]
      public bool IsMultiColumnPersonImport { get; set; }
   }
}